package com.jiyinit.web.core.activiti.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.jiyinit.core.framework.base.paging.PagingResult;
import com.jiyinit.web.core.activiti.dao.TabCoreEvectionDealDao;
import com.jiyinit.web.core.activiti.dto.EvectionDealRequest;
import com.jiyinit.web.core.activiti.entity.TabCoreEvectionDealEntity;

@Service("core.evectionDealServiceImpl")
public class EvectionDealServiceImpl {
	
	@Resource(name = "core.tabCoreEvectionDealDao")
	private TabCoreEvectionDealDao tabCoreEvectionDealDao;
	
	
	/**
     * 多条件分页查询
     * @param request
     * @return
     */
	public PagingResult<TabCoreEvectionDealEntity> findForPage(EvectionDealRequest request){
        return tabCoreEvectionDealDao.findForPage(request);
    }
	
	/**
	 * id查询
     * @param id
     * @return
     */
	public TabCoreEvectionDealEntity findOne(Integer id){
		return tabCoreEvectionDealDao.findOne(id);
	}
	
	/**
	 * 添加
     * @param entity
     * @return
     */
	public int add(TabCoreEvectionDealEntity entity){
		return tabCoreEvectionDealDao.add(entity);
	}
	
	/**
	 * 修改
     * @param entity
     * @return
     */
	public int update(TabCoreEvectionDealEntity entity){
		return tabCoreEvectionDealDao.update(entity);
	}
	
	/**
	 * 删除
     * @param id
     * @return
     */
	public int delete(Integer id){
		return tabCoreEvectionDealDao.delete(id);
	}
	
}
